//index.js
//获取应用实例
var app = getApp()
let a ,b;
Page({
  data: {
    motto: 'Hello World',
    userInfo: {},
    result:null
  },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
   
  },
  geta:function(e){
     a = e.detail.value;
    console.log("a="+a)
  },
  getb:function(e){
      b = e.detail.value;
    console.log("b="+b)
  },
  getResult:function(){
    let c = parseInt(a)+parseInt(b);
    this.setData({
      result:c
    })
  }
})
